#ifndef SERVLET_H
#define SERVLET_H

#include <QObject>
#include "httprequest.h"
#include "httpresponse.h"
class Servlet : public QObject
{
    Q_OBJECT
public:
    explicit Servlet(QObject *parent = nullptr);
    virtual ~Servlet();
    /**
     * 服务
     * @brief doService
     * @param request
     * @param response
     */
    virtual void doService(HttpRequest * request, HttpResponse *response) = 0;
signals:

public slots:
};

#endif // SERVLET_H
